/* 
 * File:   Particle.h
 * Author: georgy
 *
 * Created on Fubruary, 2012
 */

#ifndef _PARTICLE_H
#define	_PARTICLE_H

#include <stdlib.h>



template <typename real>
struct Particle
{
    real  x;
    real  y;
    real  z;
    real  vx;
    real  vy;
    real  vz;
    real  ax;
    real  ay;
    real  az;

    Particle()
    : x(0.0),
      y(0.0),
      z(0.0),
      vx(rand()),
      vy(rand()),
      vz(rand()),
      ax(0.0),
      ay(0.0),
      az(0.0)
    {};
};



typedef struct Particle<float>   fltParticle;
typedef struct Particle<double>  dblParticle;



#endif	/* _PARTICLE_H */

